package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.NewsSign;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface NewsSignMapper {
    int deleteByPrimaryKey(Long id);

    int insert(NewsSign sign);

    NewsSign selectByPrimaryKey(Long id);

    List<NewsSign> selectAll();

    int updateByPrimaryKey(NewsSign sign);

    NewsSign selectByNewsId(@Param("newsId") Long newsId, @Param("userId") Long userId);

    int queryGreatStatusCountByNewsId(Long newsId);

    int queryEnshrineStatusCountByNewsId(Long newsId);

    //
}